#ifndef MAKEACCOUNTRESPONSE_H
#define MAKEACCOUNTRESPONSE_H

#include "network/networkjsonresponse.h"


#include <QObject>

class MakeAccountResponse :  public Network::JSONResponse
{
    Q_OBJECT
public:
    MakeAccountResponse(QObject *parent = 0);

private:
    qint64 m_userId;
    QString m_userName;
    QString m_displayName;
    QString m_avatar;
    QString m_sessionKey;

public:
    inline qint64 userId() const {
        return m_userId;
    }

    inline const QString userName() const {
        return m_userName;
    }

    inline const QString displayName() const {
        return m_displayName;
    }

    inline const QString avatar() const {
        return m_avatar;
    }

    inline const QString sessionKey() const {
        return m_sessionKey;
    }

private:
    void parse(const QVariant &data);

};

#endif // MAKEACCOUNTRESPONSE_H
